/*
 * @Author: your name
 * @Date: 2020-05-22 13:55:17
 * @LastEditTime: 2020-05-22 14:03:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /yigo/src/Utils/Test.js
 */ 
import React from 'react'

import {TouchableOpacity, Text } from 'react-native';
import { useTheme } from '@react-navigation/native';

function MyButton() {
    const { colors } = useTheme();
    console.log("coor:",colors);
    
    // let colors = useTheme()
  
    return (
      <TouchableOpacity style={{ backgroundColor: colors.card, width:100, height:200 }}>
        <Text style={{ color: colors.text }}>Button!</Text>
      </TouchableOpacity>
    );
  }

  export default MyButton